package com.chen.mapper;

import com.chen.domain.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
@Repository
@Mapper
public interface TeacherMapper {
//    分页查询
    List<Teacher> queryList(Map<String,Object> paramMap);
//     统计总条数
    Integer queryCount(Map<String,Object> paramMap);
//     批量删除Teacher
    Integer deleteTeacher(List<Integer> ids);
//    增加老师
    Integer addTeacher(Teacher teacher);
//    根据Id查找老师
    Teacher findById(Integer tid);
//    修改老师
    Integer editTeacher(Teacher teacher);
//    通过用户名与密码查找老师
    Teacher findByTeacher(Teacher teacher);
//    修改教师密码
    Integer editPswByTeacher(Teacher teacher);

}
